<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>默认值测试</title>
  </head>
  <body>
    <script>
      function testA({ a = 3, b = 2, c = 10 } = {}) {
        console.log(a, b, c);
      }

      testA({ a: 1, b: 2, c: 3 }); // 1 2 3
      testA({ c: undefined });
      testA(); // undefined undefined 10
    </script>
  </body>
</html>
